/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.system.model.domain;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.foreveross.bsl.mongodb.domain.Entity;


/**
 * 应用与云服务关联实体
 * 租户与应用是一对多关系，应用与云服务是多对多关系
 * 
 * @author Wangyi
 * @version v1.0
 * 
 * @date 2013-7-4
 * 
 */
@Document
public class AppCloudMappingEntry extends Entity {

	@Id
	private String id;
	@Field
	private String appId;
	@Field
	private String cloudId;
	@Field
	private String belongUserId;
	@Field
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getCloudId() {
		return cloudId;
	}

	public void setCloudId(String cloudId) {
		this.cloudId = cloudId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the belongUserId
	 */
	public String getBelongUserId() {
		return belongUserId;
	}

	/**
	 * @param belongUserId
	 *            the belongUserId to set
	 */
	public void setBelongUserId(String belongUserId) {
		this.belongUserId = belongUserId;
	}

}
